AM_CPPFLAGS=-I@top_srcdir@/include $(LTDLINCL)
noinst_LTLIBRARIES = libnhttpd.la
libnhttpd_la_SOURCES = bufreader.c detect.c hashtable.c list.c log.c \
nherror.c nhfile.c nhstring.c nqueue.c object.c readahead.c reader.c \
request.c response.c servcontext.c srvsocket.c strreader.c threadpool.c \
vector.c writer.c nhconfig.h
libnhttpd_la_LDFLAGS = -static
bin_PROGRAMS = nhttpd
nhttpd_SOURCES = nhttpd.c nhconfig.c servcontext.h uidgid.h uidgid.c nhexec.c
nhttpd_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL) \
-DNH_DEFCONF="\"@sysconfdir@/nhttpd.conf\"" \
-DNH_DEFMODDIR="\"@libdir@/@PACKAGE@\""
nhttpd_LDFLAGS = -dlopen self
nhttpd_LDADD = libnhttpd.la $(LIBLTDL) @libexpat@